package io.hx.modules.patient.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.hx.common.utils.PageUtils;
import io.hx.common.utils.Query;

import io.hx.modules.patient.dao.DetailsDao;
import io.hx.modules.patient.entity.DetailsEntity;
import io.hx.modules.patient.service.DetailsService;


@Service("detailsService")
public class DetailsServiceImpl extends ServiceImpl<DetailsDao, DetailsEntity> implements DetailsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DetailsEntity> page = this.page(
                new Query<DetailsEntity>().getPage(params),
                new QueryWrapper<DetailsEntity>()
        );

        return new PageUtils(page);
    }

}
